<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            outline: 0;
        }
        body {
            color: black;
        }
        a{
            text-decoration: none;
            color: inherit;
        }
        .pj_tabbar{
            display: flex;
            
        }
        .pj_tabbabar__item {
            flex: 1;
            height: 50px;
            border-bottom: 1px solid red;
        }
        .pj_tabbabar__item a {
            display: block;
            line-height: 50px;
            text-align: center;
        }
        .pj_tabbabar__item a:first-child {
            border-right: 1px solid red;
            
        }
        .pj_tababbar__item_on {
            background-color: pink;
            color: white;
        }
    </style>
</head>
<body>
    <div class="pj_tabbar">
        <div class="pj_tabbabar__item pj_tababbar__item_on">
            <a href="#" data-type="'basic">basic</a>
        </div>
        <div class="pj_tabbabar__item">
            <a href="#" data-type="'super">super</a>
        </div>
    </div>
    <div id="list"></div>
    <script>
        const list = document.getElementById('list');
        const links = document.querySelectorAll('.pj_tabbabar__item a')
        const tabTypes = {
            basic: Symbol(),
            super: Symbol()
        }
        links.forEach(link => {
            link.addEventListener('click', function(event) {
                event.preventDefault();
                const type = event.target.dataset.type;
                console.log(type)
                if (type == tabTypes.basic) {
                    list.innerText = 'basic'
                    console.log('------')
                }
                if (type == tabTypes.super) {
                    list.innerText = 'super'
                }
            })
        })
    </script>
</body>
</html>